var piex = [];
var piey = [];
var address = "";
var result = {};
var url = location.search; //获取url中"?"符后的字串
if (url.indexOf("?") != -1) {
    address = decodeURI(url.substr(1).split("=")[1]);
}
if (address == "杭州") {
    result = {"办公": 2528303, "商用": 3042491, "住房": 15599790, "其他": 4893506};
} else if (address == "宁波") {
    result = {"办公": 1441467, "商用": 833518, "住房": 2501593, "其他": 7926763};

} else if (address == "绍兴") {

} else if (address == "嘉兴") {
    result = {"办公": 144619, "商用": 668067, "住房": 3348439, "其他": 622843};

} else if (address == "金华") {
    result = {"办公": 140805, "商用": 422002, "住房": 2375282, "其他": 564074};

} else if (address == "海曙") {
    result = {"办公": 186576, "商用": 113073, "住房": 165604, "其他": 452327};

} else if (address == "镇海") {
    result = {"办公": 71433, "商用": 18041, "住房": 134795, "其他": 440352};

} else if (address == "江北") {
    result = {"办公": 122353, "商用": 153527, "住房": 329810, "其他": 646901};

} else if (address == "北仑") {

} else if (address == "鄞州") {
    result = {"办公": 407465, "商用": 243846, "住房": 892456, "其他": 3045711};
} else if (address == "象山") {
    result = {"办公": 48202, "商用": 20540, "住房": 83772, "其他": 338611};

} else if (address == "奉化") {
    result = {"办公": 124714, "商用": 32001, "住房": 69199, "其他": 264261};

} else if (address == "慈溪") {
    result = {"办公": 132564, "商用": 37233, "住房": 194589, "其他": 817376};
} else if (address == "余姚") {
    result = {"办公": 127468, "商用": 42175, "住房": 161484, "其他": 571553};

} else if (address == "宁海") {
    result = {"办公": 78566, "商用": 40959, "住房": 178512, "其他": 296564};
}

for (var key in result) {
    piex.push(key);
    piey.push(result[key]);
}